/*
 * @Description: themeConfig 模块
 * @Version: 1.0
 * @Autor: wangqiang
 * @Date: 2021-07-01 10:04:30
 * @LastEditors: wangqiang
 * @LastEditTime: 2021-07-01 11:01:09
 */
import { Module } from 'vuex';
import { ThemeConfigState, RootStateTypes } from '@/store/interface';

const themeConfigModule: Module<ThemeConfigState, RootStateTypes> = {
	state: {
        themeColor: 'red',
        fontSize: 16,
        height: '100%',
        width: '100%'
	},
	mutations: {
		// 设置布局配置
		setThemeColor(state: any, themeColor: string) {
			state.themeColor = themeColor;
		}
	}
};

export default themeConfigModule;
